﻿using Wedonek.Gateway.Modular.Interface;

namespace Wedonek.Gateway.Modular.Controller
{
    internal class KafkaController : HttpApiGateway.ApiController
    {
        private IKafkaDemo _Kafka;

        public KafkaController(IKafkaDemo demo)
        {
            _Kafka = demo;
        }
        /// <summary>
        /// 发布
        /// </summary>
        public void Public()
        {
            _Kafka.Producer();
        }
        /// <summary>
        /// 订阅
        /// </summary>
        public void Subscribe()
        {
            _Kafka.Subscribe();
        }
    }
}
